<?php
$this->breadcrumbs=array(
	'Dpts'=>array('index'),
	$model->dpt_id,
);

$this->menu=array(
	array('label'=>'List Dpt', 'url'=>array('index')),
	array('label'=>'Create Dpt', 'url'=>array('create')),
	array('label'=>'Update Dpt', 'url'=>array('update', 'id'=>$model->dpt_id)),
	array('label'=>'Delete Dpt', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->dpt_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Dpt', 'url'=>array('admin')),
);
?>

<h1>View Dpt #<?php echo $model->dpt_id; ?></h1>
<?php print_r(unserialize($model->dpt_serial));?>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'dpt_id',
		'dpt_code',
		'dpt_unit',
		array(
			'label'=>'dpt_serial',
			'type'=>'raw',
			'value'=>$model->getDpts($model->dpt_serial, 1, $model->dpt_id)),
		'dpt_name',
		'dpt_admin',
		'dpt_level',
		'dpt_parent',
		'dpt_remark',
		'created_at',
		'updated_at',
	),
)); ?>
